// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.

using Stride.Core.Collections;
using Stride.Core.Serialization;
using Stride.Core.Serialization.Serializers;

namespace Stride.Core.Assets;

[DataSerializer(typeof(KeyedSortedListSerializer<RootAssetCollection, AssetId, AssetReference>))]
public class RootAssetCollection : KeyedSortedList<AssetId, AssetReference>
{
    /// <inheritdoc/>
    protected override AssetId GetKeyForItem(AssetReference item)
    {
        return item.Id;
    }
}
